<template>
    <div class="search">
      <el-form :inline="true" class="demo-form-inline">
        <slot></slot>
        <el-form-item class="search-btn">
          <el-button type="primary" size="small" icon="el-icon-search" @click="onSubmit">查询</el-button>
        </el-form-item>
      </el-form>
    </div>
</template>

<script>
export default {
  name: 'search',
  methods: {
    onSubmit () {
      this.$emit('onSubmit')
    }
  }
}
</script>

<style lang="scss" scoped>
.search-btn{
  margin-top: -5px;
}
</style>
